<html><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=">
<title>后台管理系统</title>
<link rel="stylesheet" href="/Public/Admin/css/css.css">
<script src="/Public/Admin/js/jquery-1.7.2.js"></script>
<script src="/Public/Common/Layer/layer.js"></script><link rel="stylesheet" href="http://www.zzumall.com/Public/Common/Layer/skin/layer.css" id="layui_layer_skinlayercss">
<script src="/Public/Common/Layer/extend/layer.ext.js"></script><link rel="stylesheet" href="http://www.zzumall.com/Public/Common/Layer/skin/layer.ext.css" id="layui_layer_skinlayerextcss">
<script src="/Public/Common/My97Date/WdatePicker.js"></script><link href="/Public/Common/My97Date/skin/WdatePicker.css" rel="stylesheet" type="text/css">

<script>
//查看详情
	function look_detail(id){
		parent.layer.open({
			type: 2,
			title: '订单',
			shadeClose: true,
			shade: 0.5,
			maxmin: true,
			area: ['80%', '90%'],
			content: "/index.php/Admin/Goods/order_lst_detail.html?id="+id //iframe的url
		});
	}
	function refresh(){
		window.location.href="/index.php/Admin/Goods/orders_list.html"
	}

//删除用户
function del(id){
	$("#del"+id+" td").css('background','#CBDFF2');
	parent.layer.confirm('真的要删除吗？', {
		btn: ['确认','取消'], //按钮
		shade: 0.5 //显示遮罩
	}, function(){
		$.post("/index.php/Admin/Goods/goods_orders_del.html", { "id": id},function(data){
			if(data == 1){
				parent.layer.msg('删除成功', { icon: 1, time: 1000 }, function(){
						$("#del"+id).remove();
					});
			}else{
				parent.layer.msg('删除失败', {icon: 2, time: 2000 }); 
			}
		}, "json");
	},function(){
		$("#del"+id+" td").css('border-top','0');
		$("#del"+id+" td").css('border-bottom','1px solid #EFEFEF');
	});
}
</script>
</head>
<body>
<style>
	.tr_content {
		line-height: 32px;
		height:32px;
		font-size: 14px;
	}
	
	.layui-layer-title{
		font-weight:bold;
	}
</style>
<div class="nav">
	<div class="nav_title">
    	<h4><img class="nav_img" src="/Public/Admin/img/tab.gif"><span class="nav_a">用户管理 - 商城订单列表</span></h4>
    </div>
</div>

<form action="/index.php/Admin/Goods/orders_list/menu_title/%E8%AE%A2%E5%8D%95%E7%AE%A1%E7%90%86%20-%20%E5%95%86%E5%9F%8E%E5%85%A8%E9%83%A8%E8%AE%A2%E5%8D%95" method="get">
	<div class="search" style=" line-height:50px; padding-left:30px; margin-top:3px;">
		订单编号：<input type="text" class="input" name="orders_num" value="" maxlength="30" size="20">
		  &nbsp;&nbsp;
		 手机号： <input type="text" class="input" name="mobile" value="" maxlength="30" size="20">
		 &nbsp;&nbsp;
		  
         开始日期：<input type="text" class="input" name="begin_date" value="" onclick="WdatePicker()">
         结束日期：<input type="text" class="input" name="end_date" value="" onclick="WdatePicker()">
         <br>
		支付状态：<select name="pay_status" style="height:30px; text-align: center">
			<option value="">已支付</option>
			<option value="">----------------------</option>
			<option value="1">已支付</option>
			<option value="-1">待支付</option>
		 </select>&nbsp;&nbsp;
		 订单状态： 
		 <select name="orders_status" style="height:30px; text-align: center">
		 	<option value="">
		 				 				 				 		
		 				 		
		 	</option>
			<option value="">----------------------</option>
			<option value="2">已发货</option>
			<option value="3">已收货,待完成</option>
			
			<option value="4">已申请退货</option>
			<option value="5">已完成</option>
			<option value="6">已允许退货</option>

			

		 </select>&nbsp;&nbsp;
		 姓名： <input type="text" class="input" name="realname" value="" maxlength="30" size="20">
		 &nbsp;&nbsp;
		<button type="submit" class="button">查 询</button>
		<button type="button" class="button" onclick="refresh();">刷 新</button>
		<!-- <button type="button" class="button" onClick="export_orders();" style="background:#146AC1;">批量导出订单Excel</button> -->
	</div>
</form>
<style>
	*{
		padding: 0;
		margin:0;
	}
	*{
		padding: 0;
		margin:0;
	}
	ul{
		margin:0;
		padding:0;
	}
	li{
		list-style: none;
	}
	.clearfix:after{display:block; content:""; clear:both;}
	.clearfix{zoom:1;}
	.fl{float:left;}
	.fr{float:right;}


	.state{
		width: 100%;
		height: 40px;
		line-height: 40px;
	}
	.state li{
		width: 10%;
		line-height: 40px;
		background:#E4EEFA;
		text-align: center;
		border-right:1px solid #ccc;
		box-sizing:border-box;
		-moz-box-sizing:border-box;
		-webkit-box-sizing:border-box;
    	font-family: 'Microsoft YaHei';
		font-size: 16px;
	}
	.state li.active{
		width: 5%;
	}
	.state li.hove{
		width: 15%;
	}
	.menu{
		width: 100%;
		margin:0;
	}
	.menu .menu_con{
		border-bottom:1px solid #ccc;
		padding:10px 0;
	}
	.menu .menu_con.active{
		background:#f5f5f5;
	}
	.menu .menu_con span{
		width: 10%;
		text-align: center;
	}
	.menu .menu_con span.active{
		width: 5%;
	}
	.menu .menu_con span.hove{
		width: 15%;
	}
	.menu .menu_con .level{
		display:none;
	}
	.menu .menu_con .level.active{
		display:block;
	}
	.menu .menu_con .level dt{
		width: 100%;
		height: 40px;
		line-height: 40px;
		text-align: center;
		background:#E4EEFA;
		margin-top:15px;
    	font-family: 'Microsoft YaHei';
		font-size: 16px;
		margin-bottom:10px;
	}
	.menu .menu_con .level dd{
		width: 10%;
		padding:10px 0;
		text-align: center;
		line-height: 40px;
	}
	.menu .menu_con .level dd img{
		width: 100%;
	}
	.menu .menu_con .level dd input{
		height: 32px;
	    line-height: 30px;
	    background: #6FB737;
	    color: #FFF;
	    padding: 0px 20px;
	    cursor: pointer;
	    margin-right: 10px;
	    font-size: 14px;
	    border: 0;
	    border-radius: 5px;
	}
	.menu .menu_con .level dd.active{
		height: 40px;
	}
	.menu .menu_con .level dd a{
		width: 44px;
		height: 35px;
		background:#146AC1;
		display:inline-block;
		text-align: center;
		line-height: 35px;
		color:#fff;
		border-radius: 5px;
	}
	.menu .menu_con .level dd input.active{
		background:#555;
	}
	.menu .menu_con .level dd input:nth-child(2):hover{
		background:#146AC1;
	}
</style>

	<ul class="state clearfix">
		<li class="fl active">ID</li>
		<li class="fl hove">订单号</li>
		<li class="fl">用户ID&上级</li>
		<li class="fl">总金额</li>
		<li class="fl">收货人&手机</li>
		<li class="fl">下单时间</li>
		<li class="fl">支付时间</li>
		<li class="fl">发货时间</li>
		<li class="fl">快递单号</li>
		<li class="fl">订单状态</li>
	</ul>
	

	<ul class="menu">
		<li class="menu_con">
			<div class="clearfix">
				<span class="fl active">商品ID</span>
				<span class="fl hove">1211254526</span>
				<span class="fl"><span>123</span><br><span>123</span></span>
				<span class="fl">$111</span>
				<span class="fl">雅虎15182979311</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">1211254526</span>
				<span class="fl">以发货</span>
			</div>
			<dl class="level clearfix">
				<dt class="fl">商品清单</dt>
				<dd class="fl">商品ID：<span>122</span></dd>
				<dd class="fl active">
					<img src="lls" alt="">
				</dd>
				<dd class="fl">默默</dd>
				<dd class="fl">数量：<span>120</span></dd>
				<dd class="fl">单价：<span>120</span></dd>
				<dd class="fl">订单产品总数：<span>120</span></dd>
				<dd class="fl">总价：<span>120</span></dd>
				<dd class="fl">
					<input type="button" value="发货" class="active">
				</dd>
				<dd class="fl">
					<a href="javascript:;">详情</a>
				</dd>
			</dl>
		</li>
		
		<li class="menu_con">
			<div class="clearfix">
				<span class="fl active">商品ID</span>
				<span class="fl hove">1211254526</span>
				<span class="fl"><span>123</span><br><span>123</span></span>
				<span class="fl">$111</span>
				<span class="fl">雅虎15182979311</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">1211254526</span>
				<span class="fl">以发货</span>
			</div>
			<dl class="level clearfix">
				<dt class="fl">商品清单</dt>
				<dd class="fl">商品ID：<span>122</span></dd>
				<dd class="fl active">
					<img src="lls" alt="">
				</dd>
				<dd class="fl">默默</dd>
				<dd class="fl">数量：<span>120</span></dd>
				<dd class="fl">单价：<span>120</span></dd>
				<dd class="fl">订单产品总数：<span>120</span></dd>
				<dd class="fl">总价：<span>120</span></dd>
				<dd class="fl">
					<input type="button" value="发货" class="active">
				</dd>
				<dd class="fl">
					<a href="javascript:;">详情</a>
				</dd>
			</dl>
		</li>
		<li class="menu_con">
			<div class="clearfix">
				<span class="fl active">商品ID</span>
				<span class="fl hove">1211254526</span>
				<span class="fl"><span>123</span><br><span>123</span></span>
				<span class="fl">$111</span>
				<span class="fl">雅虎15182979311</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">1211254526</span>
				<span class="fl">以发货</span>
			</div>
			<dl class="level clearfix">
				<dt class="fl">商品清单</dt>
				<dd class="fl">商品ID：<span>122</span></dd>
				<dd class="fl active">
					<img src="lls" alt="">
				</dd>
				<dd class="fl">默默</dd>
				<dd class="fl">数量：<span>120</span></dd>
				<dd class="fl">单价：<span>120</span></dd>
				<dd class="fl">订单产品总数：<span>120</span></dd>
				<dd class="fl">总价：<span>120</span></dd>
				<dd class="fl">
					<input type="button" value="发货" class="active">
				</dd>
				<dd class="fl">
					<a href="javascript:;">详情</a>
				</dd>
			</dl>
		</li>
		<li class="menu_con">
			<div class="clearfix">
				<span class="fl active">商品ID</span>
				<span class="fl hove">1211254526</span>
				<span class="fl"><span>123</span><br><span>123</span></span>
				<span class="fl">$111</span>
				<span class="fl">雅虎15182979311</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">1211254526</span>
				<span class="fl">以发货</span>
			</div>
			<dl class="level clearfix">
				<dt class="fl">商品清单</dt>
				<dd class="fl">商品ID：<span>122</span></dd>
				<dd class="fl active">
					<img src="lls" alt="">
				</dd>
				<dd class="fl">默默</dd>
				<dd class="fl">数量：<span>120</span></dd>
				<dd class="fl">单价：<span>120</span></dd>
				<dd class="fl">订单产品总数：<span>120</span></dd>
				<dd class="fl">总价：<span>120</span></dd>
				<dd class="fl">
					<input type="button" value="发货" class="active">
				</dd>
				<dd class="fl">
					<a href="javascript:;">详情</a>
				</dd>
			</dl>
		</li>
		<li class="menu_con">
			<div class="clearfix">
				<span class="fl active">商品ID</span>
				<span class="fl hove">1211254526</span>
				<span class="fl"><span>123</span><br><span>123</span></span>
				<span class="fl">$111</span>
				<span class="fl">雅虎15182979311</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">1211254526</span>
				<span class="fl">以发货</span>
			</div>
			<dl class="level clearfix">
				<dt class="fl">商品清单</dt>
				<dd class="fl">商品ID：<span>122</span></dd>
				<dd class="fl active">
					<img src="lls" alt="">
				</dd>
				<dd class="fl">默默</dd>
				<dd class="fl">数量：<span>120</span></dd>
				<dd class="fl">单价：<span>120</span></dd>
				<dd class="fl">订单产品总数：<span>120</span></dd>
				<dd class="fl">总价：<span>120</span></dd>
				<dd class="fl">
					<input type="button" value="发货" class="active">
				</dd>
				<dd class="fl">
					<a href="javascript:;">详情</a>
				</dd>
			</dl>
		</li>
		<li class="menu_con">
			<div class="clearfix">
				<span class="fl active">商品ID</span>
				<span class="fl hove">1211254526</span>
				<span class="fl"><span>123</span><br><span>123</span></span>
				<span class="fl">$111</span>
				<span class="fl">雅虎15182979311</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">1211254526</span>
				<span class="fl">以发货</span>
			</div>
			<dl class="level clearfix">
				<dt class="fl">商品清单</dt>
				<dd class="fl">商品ID：<span>122</span></dd>
				<dd class="fl active">
					<img src="lls" alt="">
				</dd>
				<dd class="fl">默默</dd>
				<dd class="fl">数量：<span>120</span></dd>
				<dd class="fl">单价：<span>120</span></dd>
				<dd class="fl">订单产品总数：<span>120</span></dd>
				<dd class="fl">总价：<span>120</span></dd>
				<dd class="fl">
					<input type="button" value="发货" class="active">
				</dd>
				<dd class="fl">
					<a href="javascript:;">详情</a>
				</dd>
			</dl>
		</li>
		<li class="menu_con">
			<div class="clearfix">
				<span class="fl active">商品ID</span>
				<span class="fl hove">1211254526</span>
				<span class="fl"><span>123</span><br><span>123</span></span>
				<span class="fl">$111</span>
				<span class="fl">雅虎15182979311</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">1211254526</span>
				<span class="fl">以发货</span>
			</div>
			<dl class="level clearfix">
				<dt class="fl">商品清单</dt>
				<dd class="fl">商品ID：<span>122</span></dd>
				<dd class="fl active">
					<img src="lls" alt="">
				</dd>
				<dd class="fl">默默</dd>
				<dd class="fl">数量：<span>120</span></dd>
				<dd class="fl">单价：<span>120</span></dd>
				<dd class="fl">订单产品总数：<span>120</span></dd>
				<dd class="fl">总价：<span>120</span></dd>
				<dd class="fl">
					<input type="button" value="发货" class="active">
				</dd>
				<dd class="fl">
					<a href="javascript:;">详情</a>
				</dd>
			</dl>
		</li>
		<li class="menu_con">
			<div class="clearfix">
				<span class="fl active">商品ID</span>
				<span class="fl hove">1211254526</span>
				<span class="fl"><span>123</span><br><span>123</span></span>
				<span class="fl">$111</span>
				<span class="fl">雅虎15182979311</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">1211254526</span>
				<span class="fl">以发货</span>
			</div>
			<dl class="level clearfix">
				<dt class="fl">商品清单</dt>
				<dd class="fl">商品ID：<span>122</span></dd>
				<dd class="fl active">
					<img src="lls" alt="">
				</dd>
				<dd class="fl">默默</dd>
				<dd class="fl">数量：<span>120</span></dd>
				<dd class="fl">单价：<span>120</span></dd>
				<dd class="fl">订单产品总数：<span>120</span></dd>
				<dd class="fl">总价：<span>120</span></dd>
				<dd class="fl">
					<input type="button" value="发货" class="active">
				</dd>
				<dd class="fl">
					<a href="javascript:;">详情</a>
				</dd>
			</dl>
		</li>
		<li class="menu_con">
			<div class="clearfix">
				<span class="fl active">商品ID</span>
				<span class="fl hove">1211254526</span>
				<span class="fl"><span>123</span><br><span>123</span></span>
				<span class="fl">$111</span>
				<span class="fl">雅虎15182979311</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">1211254526</span>
				<span class="fl">以发货</span>
			</div>
			<dl class="level clearfix">
				<dt class="fl">商品清单</dt>
				<dd class="fl">商品ID：<span>122</span></dd>
				<dd class="fl active">
					<img src="lls" alt="">
				</dd>
				<dd class="fl">默默</dd>
				<dd class="fl">数量：<span>120</span></dd>
				<dd class="fl">单价：<span>120</span></dd>
				<dd class="fl">订单产品总数：<span>120</span></dd>
				<dd class="fl">总价：<span>120</span></dd>
				<dd class="fl">
					<input type="button" value="发货" class="active">
				</dd>
				<dd class="fl">
					<a href="javascript:;">详情</a>
				</dd>
			</dl>
		</li>
		<li class="menu_con">
			<div class="clearfix">
				<span class="fl active">商品ID</span>
				<span class="fl hove">1211254526</span>
				<span class="fl"><span>123</span><br><span>123</span></span>
				<span class="fl">$111</span>
				<span class="fl">雅虎15182979311</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">1211254526</span>
				<span class="fl">以发货</span>
			</div>
			<dl class="level clearfix">
				<dt class="fl">商品清单</dt>
				<dd class="fl">商品ID：<span>122</span></dd>
				<dd class="fl active">
					<img src="lls" alt="">
				</dd>
				<dd class="fl">默默</dd>
				<dd class="fl">数量：<span>120</span></dd>
				<dd class="fl">单价：<span>120</span></dd>
				<dd class="fl">订单产品总数：<span>120</span></dd>
				<dd class="fl">总价：<span>120</span></dd>
				<dd class="fl">
					<input type="button" value="发货" class="active">
				</dd>
				<dd class="fl">
					<a href="javascript:;">详情</a>
				</dd>
			</dl>
		</li><li class="menu_con">
			<div class="clearfix">
				<span class="fl active">商品ID</span>
				<span class="fl hove">1211254526</span>
				<span class="fl"><span>123</span><br><span>123</span></span>
				<span class="fl">$111</span>
				<span class="fl">雅虎15182979311</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">2015-10-12 12:30:30</span>
				<span class="fl">1211254526</span>
				<span class="fl">以发货</span>
			</div>
			<dl class="level clearfix">
				<dt class="fl">商品清单</dt>
				<dd class="fl">商品ID：<span>122</span></dd>
				<dd class="fl active">
					<img src="lls" alt="">
				</dd>
				<dd class="fl">默默</dd>
				<dd class="fl">数量：<span>120</span></dd>
				<dd class="fl">单价：<span>120</span></dd>
				<dd class="fl">订单产品总数：<span>120</span></dd>
				<dd class="fl">总价：<span>120</span></dd>
				<dd class="fl">
					<input type="button" value="发货" class="active">
				</dd>
				<dd class="fl">
					<a href="javascript:;">详情</a>
				</dd>
			</dl>
		</li>
<!-- 分页 -->
<div class="page">
	<div>
		{$page}
	</div>
</div>
	</ul>
	
	<div>
<script>
	$('.menu .menu_con').on('mouseenter',function(){
		$('.menu .menu_con .level').eq($(this).index()).addClass('active');
		$(this).addClass('active');
	}).on('mouseleave',function(){
		$('.menu .menu_con .level').eq($(this).index()).removeClass('active');
		$(this).removeClass('active');
	})
function tuihuo_ok(id){
	parent.layer.confirm('确认允许退货吗?', {
	  btn: ['确认','取消'] //按钮
	}, function(){
		parent.layer.closeAll();
	  	parent.iframe.window.location.href="/index.php/Admin/Goods/tuihuo_chuli.html?orders_id="+id+"&status=1";
	});
}
function tuihuo_no(id){
	parent.layer.confirm('确认拒绝退货吗?', {
	  btn: ['确认','取消'] //按钮
	}, function(){
		parent.layer.closeAll();
	  	parent.iframe.window.location.href="/index.php/Admin/Goods/tuihuo_chuli.html?orders_id="+id+"&status=-1";
	});
}
</script>        

<script>
function add(a){
	parent.layer.open({
		type: 2,
		shadeClose: true,
		shade: 0.5,
		area: ['450px', '250px'],
		title: '添加发货信息',
		content: '/index.php/Admin/Goods/kuaidi_add.html?id='+a,
	});
}

function done(id){	
	//prompt层
	var index=layer.prompt({
	  title: '输入操作密码，并确认',
	  formType: 1 //prompt风格，支持0-2
	}, function(pass){
	$(".layui-layer-btn0").attr("disabled","disabled");
	$(".layui-layer-btn0").text("提交中...");
	  $.post("/index.php/Admin/Goods/done.html",{
					   'order_id':id,
					   'password':pass
					},function(data){
						if(data==1){
							layer.close(index);
							layer.msg('已经成功标记为确认收货', {
								  icon: 1,
								  time: 2000 //2秒关闭（如果不配置，默认是3秒）
								}, function(){
									window.location.href="/index.php/Admin/Goods/orders_list/menu_title/%E8%AE%A2%E5%8D%95%E7%AE%A1%E7%90%86%20-%20%E5%95%86%E5%9F%8E%E5%85%A8%E9%83%A8%E8%AE%A2%E5%8D%95";
								});
						}else if(data==2){
							layer.close(index); 
							layer.msg('密码错误');
						}else{
							layer.close(index);
							layer.msg('标记出错');
						}
					})
	});	
}

function show_info(num){
		parent.layer.open({
			type: 2,
			shadeClose: true,
			shade: 0.2,
			area: ['800px', '480px'],
			title: '查询快递单号',
			content: 'http://www.zzumall.com/kuaidi/index.php?num='+num,
		});
	}
</script>
  </table>
</div>


</body></html>